package com.iraeta.entity.main;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.Date;

/**
 * 文件上传对象 sys_files
 * 
 * @author iraeta
 * @date 2023-11-04
 */
public class SysFiles
{
    private static final long serialVersionUID = 1L;

    /** 文件ID */
    private Long fId;

    public SysFiles() {
    }

    public SysFiles(Integer entityTypeId, Long entityId) {
        this.entityTypeId = entityTypeId;
        this.entityId = entityId;
    }

    public SysFiles(Integer entityTypeId, Long entityId, String fileName, String filePath) {
        this.entityTypeId = entityTypeId;
        this.entityId = entityId;
        this.fileName = fileName;
        this.filePath = filePath;
    }

    /** 业务类型 */
    private Integer entityTypeId;

    /** 业务类型Id */
    private Long entityId;

    /** 文件名称 */
    private String fileName;

    /** 文件路径 */
    private String filePath;

    /** 搜索值 */
    @JsonIgnore
    private String searchValue;

    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 备注 */
    private String remark;

    public void setfId(Long fId) 
    {
        this.fId = fId;
    }

    public Long getfId() 
    {
        return fId;
    }
    public void setEntityTypeId(Integer entityTypeId) 
    {
        this.entityTypeId = entityTypeId;
    }

    public Integer getEntityTypeId() 
    {
        return entityTypeId;
    }
    public void setEntityId(Long entityId) 
    {
        this.entityId = entityId;
    }

    public Long getEntityId() 
    {
        return entityId;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }

    public String getSearchValue() {
        return searchValue;
    }

    public void setSearchValue(String searchValue) {
        this.searchValue = searchValue;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "SysFiles{" +
                "fId=" + fId +
                ", entityTypeId=" + entityTypeId +
                ", entityId=" + entityId +
                ", fileName='" + fileName + '\'' +
                ", filePath='" + filePath + '\'' +
                '}';
    }
}
